<jsp:include page="header.jsp" />
<jsp:include page="errorList.jsp"/>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
Manage User Bookmarks<br/><br/><br/>
Add user bookmark<br/><br/>
<form action="addBookmark.do" method="POST">
	<table>
		<tr><td>URL</td><td><input type="text" name="url" id="url" value="${form.url}"/></td></tr>
		<tr><td>Comment</td><td><input type="text" name="comment" id="comment" value="${form.comment}"/></td></tr>
		<tr><td colspan="2"><input type="submit" name="addBookmark" value="Add bookamrk" id="addBookmark" /> <input type="reset" value="cancel" name="cancel" id="cancel" /></td></tr>
	</table><br/><br/>
</form>

<form action="manage.do" method="POST">
<table border="1">
<tr><th>URL</th><th>Comment</th><th>Click count</th><th>Delete</th></tr>
<c:forEach var="userBookmarks" items="${userBookmarks}" >
	<!-- source for the delete picture: http://icons.iconarchive.com/icons/visualpharm/must-have/16/Delete-icon.png -->
	<tr><td width="275"><a href="manageRedirect.do?url=${userBookmarks.url}">${userBookmarks.url}</a></td><td width="275">${userBookmarks.comment}</td><td>${userBookmarks.clickCount}</td><td><a href="deleteBookmark.do?url=${userBookmarks.url}"><img src="images/Delete-icon.png"/></a></td></tr>
</c:forEach>	
</table>
</form>
<jsp:include page="footer.jsp"/>